package cn.wolfcode.car.business.domain;

import cn.wolfcode.car.base.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CarPackageAudit {

    public static final Integer STATUS_IN_ROGRESS = 0;//审核中
    public static final Integer STATUS_REJECT = 1;//审核拒绝
    public static final Integer STATUS_PASS = 2;//审核通过
    public static final Integer STATUS_CANCEL = 3;//审核撤销

    /** 主键*/
    private Long id;

    /** 服务单项id*/
    private Long serviceItemId;

    /** 服务单项备注*/
    private String serviceItemInfo;

    /** 服务单项审核价格*/
    private BigDecimal serviceItemPrice;
    /**
     * 为了在页面中展示套餐名称
     */
    private ServiceItem serviceItem;

    /** 流程实例id*/
    private String instanceId;

    /** 创建者*/
    private String creator;

    /** 当前审核人id*/
    private Long auditorId;

    /** 关联流程id*/
    private Long bpmninfoId;

    /** 备注*/
    private String info;

    /**
     * 状态【进行中0/审核拒绝1/审核通过2/审核撤销3】
     */
    private Integer status = STATUS_IN_ROGRESS;

    /** 审核时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date auditTime;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    //在list页面展示审批人
    private User auditor;

}